package grid;

import meta.HasMeta;

public class Grid3DMeta {
	/**
	 * @param meta
	 */
	public static void addMetaObject(Grid3DFloat grid,HasMeta meta){
		for (int x=0;x<grid.nX;x++){
			for (int y=0;y<grid.nY;y++){
				for (int z=0;z<grid.nZ;z++){
					grid.add(x, y, z, meta.getMeta(x, y, z));
				}
			}
		}
	}
	/**
	 * @param meta
	 */
	public static void subtractMetaObject(Grid3DFloat grid,HasMeta meta){
		for (int x=0;x<grid.nX;x++){
			for (int y=0;y<grid.nY;y++){
				for (int z=0;z<grid.nZ;z++){
					grid.sub(x, y, z, meta.getMeta(x, y, z));
				}
			}
		}
	}
}
